package com.itheima.stock.mapper;

import com.itheima.stock.common.domain.*;
import com.itheima.stock.pojo.StockRtInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
* @author byzhao
* @description 针对表【stock_rt_info(个股详情信息表)】的数据库操作Mapper
* @createDate 2022-10-01 20:05:23
* @Entity com.itheima.stock.pojo.StockRtInfo
*/
@Mapper
public interface StockRtInfoMapper {
    /**
     * 涨幅榜
     * @param curTime
     * @return
     */
    List<StockUpDownCountDomain> stockIncreaseLimit(@Param("curTime") Date curTime);

    List<StockUpDownCountDomain> selectStockAll();

    List<Map> selectStockUpDownCount(@Param("dateTime") Date dateTime, @Param("openTime") Date openTime, @Param("i") Integer i);

    List<Info> stockUpDown(@Param("time") Date time);

    List<Stock4MinuteDomain> stockScreenTimesharing(@Param("code") String code, @Param("startDate") Date startDate, @Param("endDate") Date endDate);

    List<Date> stockScreenDayDate(@Param("code") String code,@Param("beginDate") Date beginDate, @Param("endDate") Date endDate);
    List<Stock4EvrDayDomain> stockScreenDkline(@Param("code") String code, @Param("dateList") List<Date> dateList);

    List<Stock4WeekDomain> stockScreenWeekKline(@Param("code") String code, @Param("beginDate") Date beginDate, @Param("endDate") Date endDate);

    void insertBatch(@Param("infos") List<StockRtInfo> infos);
}




